/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package serverapplication;

import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import pack.QuestionVoteProcess;

/**
 *
 * @author shuyi
 */
public class GlobalVariables {
    
    // the variable which do NOT need synchronized
    static final int DESKTOP_PORT = 30002;
    static final int WEB_PORT=30003;
    static final int START_VOTE_PORT=30004;
    
    static Lock globalVariableLock = new ReentrantLock();
    // the variable which need synchronized
    static Map<Integer,QuestionVoteProcess> questionInVoting;
}
